Skip to content

fix(navigation): fill the active filter icon, outline the rest - #2869

Merged
pringelmann merged 2 commits into
masterfrom
fix/nav-icons-filled-when-active
Aug 18, 2026
Merged

fix(navigation): fill the active filter icon, outline the rest#2869
pringelmann merged 2 commits into
masterfrom
fix/nav-icons-filled-when-active

Conversation

@pringelmann

Copy link
Copy Markdown
Contributor

Resolves #2662

The nav icons were a mix of outlined and filled, with nothing tying that to which filter you're on. Each filter id now has both variants from @mdi, and the icon slot picks one off the NcAppNavigationItem active prop:

Before After
image image

The map has to be here rather than in the backend: getIcon() returns one URL, and a second state would mean changing public OCP API. Filters not in the map keep their backend URL and stay put when selected. One example is Deck, where we decided to keep the actual app icon as a real solid mark, plus Tasks and anything else third-party.

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI (tests)

}

.app-navigation-entry {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

auto-format on save

@codecov

codecov Bot commented Aug 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Signed-off-by: Peter Ringelmann <peter.ringelmann@nextcloud.com>
@AndyScherzinger
AndyScherzinger force-pushed the fix/nav-icons-filled-when-active branch from c8ccb78 to d2fae06 Compare August 18, 2026 10:50
@AndyScherzinger

Copy link
Copy Markdown
Member

/compile

Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@pringelmann
pringelmann merged commit dbbb5a4 into master Aug 18, 2026
51 checks passed
@pringelmann
pringelmann deleted the fix/nav-icons-filled-when-active branch August 18, 2026 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use filled icons in the part of Activity

4 participants